import re

import requests



# 1. 省份接口
login_ur0l = "http://ws.webxml.com.cn/WebServices/WeatherWebservice.asmx/getSupportProvince"
# 2. 城市接口
login_ur02 ="http://ws.webxml.com.cn/WebServices/WeatherWebservice.asmx/getSupportCity?byProvinceName"

# hearder01 = {"content-type":"image/x-icon"
# }
# nasa01 = requests.get(login_ur0l).text
# # print(nasa01)
#
# nasa02 = re.findall("<string>(.*)</string>",nasa01)
# # print(nasa02)
#
# nasa03 = {"byProvinceName":nasa02[9]}
# nasa04 = requests.get(login_ur02,nasa03).text
# print(nasa04)

nasa01 = requests.get(url=login_ur0l)
aa = re.findall('广东',nasa01.text)
byProvinceName=aa
print(byProvinceName)




#城市接口


